import request from '@/utils/request'

const apiUrl = '/api/archive-cancel'

// 分页查询档案注销记录
export function getArchiveCancelPage(params) {
    return request({
        url: `${apiUrl}/page`,
        method: 'get',
        params
    })
}

// 获取档案注销详情
export function getArchiveCancelById(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

// 批量保存或更新档案注销记录
export function saveOrUpdateBatchArchiveCancel(data) {
    return request({
        url: `${apiUrl}/batch`,
        method: 'post',
        data
    })
}

// 删除档案注销记录
export function deleteArchiveCancel(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
}

// 批量删除档案注销记录
export function batchDeleteArchiveCancel(ids) {
    return request({
        url: `${apiUrl}/batch`,
        method: 'delete',
        data: ids
    })
} 